import { createApp } from 'vue'
import App from './App.vue'
import router from './router'
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import * as Icons from '@element-plus/icons-vue'

const app = createApp(App)

// 全局注册图标
for (const Icon in Icons) {
  app.component(Icon, (Icons as any)[Icon])
}

// styles
import 'normalize.css/normalize.css'
import './styles/index.scss'

app.use(router).use(ElementPlus)
app.mount('#app')
